<style>
    .layui-iconpicker-body.layui-iconpicker-body-page .hide {
        display: none;
    }
    .select_a {
            color: #009688;
            padding: 2px;
            margin: 2px;
            border: #009688 1px dashed;
        }
</style>
<link rel="stylesheet" href="__STATIC__/plugs/lay-module/autocomplete/autocomplete.css?v={$version}" media="all">
<div class="layuimini-container">
    <form id="app-form" class="layui-form layuimini-form">
                <div class="layui-form-item">
            <label class="layui-form-label">名称</label>
            <div class="layui-input-block">
                <input type="text" id="name" name="name" class="layui-input" lay-reqtext="请输入名称" placeholder="请输入名称" value="{$row.name|default=''}">
                <tip></tip>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">排序</label>
            <div class="layui-input-block">
                <input type="text" id="sort" name="sort" class="layui-input" lay-reqtext="请输入排序" placeholder="请输入排序" value="{$row.sort|default=''}">
                <tip></tip>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">图片</label>
            <div class="layui-input-block layuimini-upload">
                <input name="img" class="layui-input layui-col-xs6 img" placeholder="请上传图片" value="{$row.img|default=''}">
            <div class="layuimini-upload-btn">
                <span><a class="layui-btn" data-upload="img" data-upload-number="one" data-upload-exts="png|jpg|ico|jpeg|apk|xls|xlsx|txt|doc|docx|ppt|pptx|video" data-upload-icon="image"><i class="fa fa-upload"></i> 上传</a></span>
                <span><a class="layui-btn layui-btn-normal" id="select_img" data-upload-select="img" data-upload-number="one" data-upload-mimetype="image/*"><i class="fa fa-list"></i> 选择</a></span>
            </div>
                <tip></tip>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">宣传banner</label>
            <div class="layui-input-block layuimini-upload">
                <input name="banner" class="layui-input layui-col-xs6 img" placeholder="请上传宣传banner" value="{$row.banner|default=''}">
            <div class="layuimini-upload-btn">
                <span><a class="layui-btn" data-upload="banner" data-upload-number="one" data-upload-exts="png|jpg|ico|jpeg|apk|xls|xlsx|txt|doc|docx|ppt|pptx|video" data-upload-icon="image"><i class="fa fa-upload"></i> 上传</a></span>
                <span><a class="layui-btn layui-btn-normal" id="select_banner" data-upload-select="banner" data-upload-number="one" data-upload-mimetype="image/*"><i class="fa fa-list"></i> 选择</a></span>
            </div>
                <tip></tip>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">住家价格</label>
            <div class="layui-input-block">
                <input type="text" id="home_money" name="home_money" class="layui-input" lay-reqtext="请输入住家价格" placeholder="请输入住家价格" value="{$row.home_money|default=''}">
                <tip>单位元/天</tip>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">不住家价格</label>
            <div class="layui-input-block">
                <input type="text" id="no_hoime_money" name="no_hoime_money" class="layui-input" lay-reqtext="请输入不住家价格" placeholder="请输入不住家价格" value="{$row.no_hoime_money|default=''}">
                <tip>单位元/天</tip>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">服务内容</label>
            <div class="layui-input-block">
                <textarea name="content" class="layui-textarea editor" style="height: 500px" placeholder="请输入服务内容">{$row.content|raw}</textarea>
            </div>
        </div>
<input type="hidden" name="type_id" value="{$row.type_id|default=''}">
        <div class="layui-form-item">
            <label class="layui-form-label">状态</label>
            <div class="layui-input-block">
                <input name="status" value="1" type="checkbox" class="switch" lay-skin="switch" lay-text="开启|关闭" {if $row.status==1}checked=""{/if}>
            </div>
        </div>

        <div class="hr-line"></div>
        <div class="layui-form-item text-center">
            <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit>确认</button>
            <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">重置</button>
        </div>

    </form>
</div>
<script>
    var parameter = '{$parameter|raw|default=""}';
</script>